﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace WCFEventService
{
    public interface IMyEvents
    {
        [OperationContract(IsOneWay=true)]
        void Event1();
    }

    [ServiceContract(CallbackContract=typeof(IMyEvents))]
    public interface IMyContract
    {
        [OperationContract]
        void DoSomethingAndFireEvent();

        [OperationContract]
        void SubscribeEvent();
    }
}
